import request from '@/utils/axios-request.js'

const USER_BASE_URL = "/api/v1/setting/user";


const SettingUserAPI = {
    getList(data) {
        return request({
            url: `${USER_BASE_URL}`,
            method: 'GET',
            data,
        })
    },
    getFormData(id) {
        return request({
            url: `${USER_BASE_URL}/${id}`,
            method: "get",
        });
    },
    add(data) {
        return request({
            url: `${USER_BASE_URL}`,
            method: 'POST',
            data
        })
    },
    update(id, data) {
        return request({
            url: `${USER_BASE_URL}/${id}`,
            method: 'put',
            data
        })
    },
    resetPwd(id){
        return request({
            url: `${USER_BASE_URL}/reset-password/${id}`,
            method: 'put',
        })
    }
}

export default SettingUserAPI